<div class="bjui-pageHeader">
<form id="pagerForm" data-toggle="ajaxsearch" action="__URL__" method="post">
	
	<input type="hidden" name="pageSize" value="{$numPerPage}">
    <input type="hidden" name="pageCurrent" value="{$_REQUEST['pageNum']|default=1}">
	 
        <div class="bjui-searchBar">
            <label>关键词：</label><input type="text" value="{$_REQUEST['keys']}" name="keys" class="form-control" size="12" />
				<label>产品分类：</label><select name='fenlei' data-toggle='selectpicker'><option value=''>全部</option><foreach name='fenleilist' item='v'><option value='{$v.fenlei}'  <if condition="$v.fenlei EQ $_REQUEST['fenlei']">selected<else/>{$_REQUEST['fenlei']}</if> >{$v.fenlei}</option></foreach></select>&nbsp;
             <button type="submit"  class="btn-default" data-icon="search">查询</button>
              <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);" data-icon="undo">清空查询</a>
			  <php>if(display(CONTROLLER_NAME.'/del')){</php><span style="float:right;" ><a href="__URL__/del/navTabId/{:CONTROLLER_NAME}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要清理吗？" data-icon="remove">清理</a></span> <php>}</php>
			  <php>if(display(CONTROLLER_NAME.'/outxls')){</php><span style="float:right;margin-right:5px;"><a href="__URL__/outxls" class="btn btn-blue" data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="arrow-up">导出</a></span><php>}</php>
			  <php>if(display(CONTROLLER_NAME.'/add')){</php><span style="float:right;margin-right:5px;"><a href="__URL__/add/navTabId/{:CONTROLLER_NAME}" class="btn btn-green" data-toggle="dialog" data-width="900" data-height="500" data-id="dialog-mask" data-mask="true" data-icon="plus">新增</a></span><php>}</php>
		</div> 
</form>
    
</div>
<div class="bjui-pageContent tableContent">
     <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
        <thead>
            <tr>
            <th width="10" height="30"></th>
            <th data-order-direction='desc' data-order-field='id'>ID</th>
<th data-order-direction='desc' data-order-field='bianhao'>产品编号</th>
<th>产品名称</th>
<th>产品分类</th>
<th>产品规格</th>
<th>计量单位</th>
<th data-order-direction='desc' data-order-field='rjiage'>入库价格</th>
<th data-order-direction='desc' data-order-field='xjiage'>销售价格</th>
<th data-order-direction='desc' data-order-field='kucun'>库存数量</th>
<th>添加人</th>
<th data-order-direction='desc' data-order-field='addtime'>添加时间</th>

			<php>if(display(CONTROLLER_NAME.'/view')){</php><th width="40">详细</th><php>}</php>
		    <php>if(display(CONTROLLER_NAME.'/edit')){</php><th>编辑</th><php>}</php>
            </tr>
        </thead>
        <tbody>

          <volist id="v" name="list">
          <tr>
		   <td></td>
		   <td>{$v.id}</td>
<td>{$v.bianhao}</td>
<td>{$v.title|msubstr=###,0,20}</td>
<td>{$v.fenlei|msubstr=###,0,20}</td>
<td>{$v.type|msubstr=###,0,20}</td>
<td>{$v.danwei|msubstr=###,0,20}</td>
<td>{$v.rjiage}</td>
<td>{$v.xjiage}</td>
<td>{$v.kucun}</td>
<td>{$v.uname|msubstr=###,0,20}</td>
<td>{$v.addtime|substr=###,0,10}</td>

		   <php>if(display(CONTROLLER_NAME.'/view')){</php><td><a href="__URL__/view/id/{$v['id']}/navTabId/{:CONTROLLER_NAME}"  data-toggle="dialog" data-width="900" data-height="500" data-id="dialog-mask" data-mask="true" >详细</a></td><php>}</php>
		   <php>if(display(CONTROLLER_NAME.'/edit')){</php><td> <a href="__URL__/edit/id/{$v['id']}/navTabId/{:CONTROLLER_NAME}"   class="btn btn-green btn-sm" data-toggle="dialog" data-width="900" data-height="500" data-id="dialog-mask" data-mask="true" >编辑</a></td><php>}</php>
		   </td>
         </tr> 
          </volist>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
        <div class="pages">
            <span>共 {$totalCount} 条  每页 {$numPerPage} 条</span>
        </div>
	    <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="{$numPerPage}" data-page-current="{$currentPage}">
        </div>
</div>